package com.emser.unc.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class ShowMapEvent extends GwtEvent<ShowMapEventHandler>{
	public static Type<ShowMapEventHandler> TYPE = new Type<ShowMapEventHandler>();
	private String serialDevice;
	
	public ShowMapEvent(String serialDevice){
		this.serialDevice = serialDevice;
	}
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ShowMapEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ShowMapEventHandler handler) {
		handler.onChange(this);
	}
	
	public String getSerialDevice() {
		return serialDevice;
	}
}
